Graphic-interface, anti-clipping, color-image correction

ABSTRACT

Computer-based, anti-clipping, pre-printing, color-image correction via virtual color-parameter controllers that are provided within the graphic user interface of a print drier. Parameters accommodated include Red, Green and Blue offset, Lightness offset, Gamma and Chroma. Chroma modifications are handled preliminarily by a special mathematical matrix. Matrix-processed Chroma values are then co-processed with other parameter modifications within an anti-clipping, hyperbolic-tangent-function (asymptotic-like) algorithm which implements an asymptotic-like approach toward creating final pixel modification values that avoid range-limit color and/or tone-scale clipping. Final pixel values are drawn from three one-dimensional look-up tables, one for each of the three colors. These tables which, save overall computational time, are based upon prior user approval of a low-pixel-count sub-sampled preview image of the whole, larger, original image, in which preview image the expected effects of color parameter changes are observable.

GENERAL INTRODUCTION

[0001] This invention relates to a computer-based system and to a related methodology which enable a user to perform pre-printing, plural-parameter, anti-clipping color correction of a selected color image. More particularly, it pertains to such a system and methodology which operate under user control through the graphic interface provided by a print driver that is to be employed to control the printing of such an image. The “invention” as employed herein has a plurality meaning which embraces multiple disclosed and perceivable embodiments and manners of proficiency.

[0002] As computers and user-friendly computer processing have become more and more regularly involved in people's daily lives, such involvement has generated a fast-rising interest in do-it-yourself color-image processing, such as photo-image processing. Expanding computer-friendly sophistication indeed has promoted individuals' desires to self-perform more than just very modest and simple color processing, and in fact to perform quite elaborate processing without having to engage a difficult “learning curve” to avoid tonal clipping tangles and mishaps.

[0003] The present invention, disclosed herein, particularly in its best mode configuration, in an environment of simplicity, versatility and sophistication, effectively addresses such users current growing interests in performing elaborate color-image processing, and does so in a manner which guards against undesirable mishaps such as color and/or tone-scale clipping. Such clipping, which occurs when a key color parameter creates pixel values that lie outside an acceptable intensity value range (computer scale range 0-255) can all too easily and unexpectedly bloom because of the fact that various different color-affecting parameters are interlinked and interdependent in ways that are complex, cross-magnifying, and not necessarily intuitive.

[0004] According to the preferred forms and best mode of the system and the related methodology of this invention, the invention offers a color-image printing setting wherein, within the graphic interface of a print driver, a user is furnished a family of different virtual-slider, color-parameter controllers that allow for “large range” parameter-value adjustments, without there being any possibility for any pattern of slider adjustments to create clipping of the types just mentioned above. These controllers or controls, are also referred to herein as value adjusters, as change-value color controls, as color-adjustment controls, and as color-parameter controls. The particular parameters so accommodated include (1) Red offset (ΔR), (2) Green offset (ΔG), (3) Blue offset (BΔ), (4) Chroma (c) (saturation), (5) Lightness offset (ΔL), and (6) Gamma (G) (contrast). While virtual sliders are specifically illustrated, modified controllers of various different virtual kinds could be used as well. The driver also furnishes the user with a preview sub-screen in which there is presented a limited-pixel-count sub-sample of the original of the full-pixel version of an image selected for processing and printing.

[0005] These controllers visually allow for associated parameter-value adjustments to be made in the preview image sub-sample within a positive input range of 0-100, which range is equation-related, as will later be explained, to the traditional computer-scale range of 0-255, or at least to a portion of that scale range. The 0-100 input range has been selected for best mode implementation of the invention because of its intuitive convenience. Those skilled in the art will certainly recognize, however, that different controller scales could be employed. For each parameter, the associated input and computer-scale ranges are directly, though not in each case linearly, related to a defined, modified parameter code-value range, from within which range output pixel values are calculated for assessment-modification of the preview image sub-sample created in accordance with the invention. All parameters except the Gamma parameter possess such a range relationship which is linear. As a controller slider for a parameter is “moved” throughout the input range of 0-100, new parameter output values (from the controller) relatedly follow this movement with values drawn from the associated parameter code-value range. Calculated, related color changes appear in the image sub-sample.

[0006] Of all of the six mentioned parameters, the Chroma parameter is the one with respect to which the most mischievous clipping problems are associated. Accordingly, the practice of the present invention treats adjustments made to this parameter in a special preliminary manner (first-level attention) before creating ultimate final pixel-output intensity values resulting from dealing collectively with all six of the named parameters. Chroma values are firstly processed, as will be explained and illustrated below, in a special 3×3 mathematical matrix for each of the three colors Red, Green, and Blue. The matrix preserves the neutral colors with Chroma user-settings that increase or decrease prospective color saturation.

[0007] These processed Chroma values are then operatively “combined” with the other five parameter values (second-level attention) in a special anti-clipping algorithm (or structure) which, in what is referred to herein as an asymptotic-like governance manner, controls algorithm output pixel values so as to prevent such values from going beyond the desired computer-scale range of 0-255. This algorithm, which thus acts as an asymptotic-like limit structure, allows output parameter values gracefully to approach, and even to reach, but not to go beyond, the 0-255 range limits. The mentioned matrix and algorithm collectively constitute output control structure.

[0008] During image adjustment/correction activity, each set of controller output parameter values is applied through calculation to the image presented in the preview sub-screen provided by the print driver in the associated graphic user interface. Such value applications change the color character of the preview image so as to inform the user about the expected effects of parameter changes.

[0009] When the user is satisfied with the look of the modified sub-sample image so presented, the controller sliders are left fixed in their then positions, and the anti-clipping algorithm is employed for another purpose. More specifically, this other purpose takes hold when the satisfied user issues a print command. When that occurs, appropriate, computation-time-saving, one-dimensional look-up tables for the three colors are generated. This is done by employing the anti-clipping algorithm to calculate, for each color, a set of output values resulting from stepping one of the constituent variables, called “input”, in the algorithm seratim through a range of selected code-value numbers, such as from −250 to +500. These range numbers each stands as an arbitrary surrogate in the place (in the algorithm) of a Chroma matrix output value. The algorithm output values so calculated for a given color effectively “say”: For an algorithm “input” value of X_(n), the correct output value for this pixel color is Y_(n) These calculated algorithm output values form the look-up tables, which values, of course, take directly into account the appropriate ΔR, ΔG, ΔB, ΔL and G controller values which the user has previously determined are acceptable. (Recall that the desired ΔR, ΔG, ΔB, ΔL and G controller values have been held fixed during the time period of look-up table generation).

[0010] With the look-up tables thus created, the full original image (all pixels) is effectively run through both the Chroma matrix and the color look-up tables, with the Chroma matrix now employing the previously pre-set Chroma parameter value (c) established during assessment-operation of the virtual slider parameter controllers. This “run-through” information is sent to the appropriate printing device's print controller for final color-corrected image output printing.

[0011] The invention thus proposes a computer-based print-driver-controlled system and methodology which offer to a user, in the graphic interface of a print driver, virtual controls, such as “grab-and-adjust” manipulable sliders, to vary (1) Red, Green, Blue, and/or Lightness offsets, (2) Gamma (contrast), and (3) Chroma (saturation). The print driver also furnishes an image preview sub-screen wherein the expected effects of parameter valuation can be observed.

[0012] In the context of the preliminarily matrixed Chroma adjustment(s), all other parameter-variation values are processed to finality, on a pixel-by-pixel basis, and in an asymptotic-like manner to prevent color and/or tone-scale clipping. These finality values are prepared for use in the efficient form of the mentioned three, one-dimensional lookup tables related to the three colors Red, Green and Blue. User-invoked color modifications (corrections) are presented, prior to printing, in the driver-furnished preview image sub-screen. This, of course, handily permits a user to approve an expected “corrected” outcome in a to-be-printed image before printing begins. If the user notes any aspect of such a preview which does not seem desirable, the user may then simply continue to apply corrective controls through the virtual control sliders provided according to the invention by the print-driver graphic interface. Thus, the invention readily accommodates clipping-free interactive decision making and corrective color implementation by a user.

[0013] Within the descriptive text which follows below, and in the drawing figures, certain word and character designators are employed as follows:

[0014] R—Original Image Red pixel values

[0015] G—Original Image Green pixel values

[0016] B—Original Image Blue pixel values

[0017] R′—Chroma-matrix processed Red pixel values

[0018] G′—Chroma-matrix processed Green pixel values

[0019] B′—Chroma-matrix processed Blue pixel values

[0020] ΔR—Slidebar controller modified Red offset pixel values

[0021] ΔG—Slidebar controller modified Green offset pixel values

[0022] ΔB—Slidebar controller modified Blue offset pixel values

[0023] ΔL—Slidebar controller modified Lightness offset pixel values

[0024] G—Slidebar controller modified Gamma pixel values

[0025] c—Adjusted Red, Green or Blue Chroma values which result from use of the provided virtual Chroma parameter slidebar controller, and which are supplied to and processed in the mathematical Chroma matrix.

[0026] Input—A Red, Green or Blue Chroma-matrix processed pixel value which is supplied to and processed in the asymptotic-like anti-clipping algorithm.

[0027] These and other significant features and advantages which are offered by the system and method of this invention will become more fully apparent as the descriptions thereof which now follow are read in conjunction with the accompanying drawings.

DESCRIPTION OF THE DRAWINGS

[0028]FIG. 1 is a block/schematic diagram, appropriately text labeled, illustrating both a preferred system constructed in accordance with the present invention, and a preferred manner of practicing the methodology offered by this system.

[0029]FIG. 2 pictures a table, labeled Table I, describing controller and output code-value ranges that are associated with parameter adjustment activity.

[0030]FIG. 3 presents another table, labeled Table II, which describes what is referred to herein as the mathematical Chroma matrix that is employed, in accordance with the invention, to deal, in a primary manner, with user-implemented Chroma parameter value changes.

[0031]FIG. 4 presents yet another table, labeled Table III, describing the important anti-clipping, asymptotic-like processing algorithm which is employed along the way to create final pixel intensity values based upon user implementation of selected ones of a plurality of color-affecting parameters associated with a selected, printable, color image.

DETAILED DESCRIPTION OF THE INVENTION

[0032] Turning now to the drawings, and referring first of all to FIG. 1, here there is indicated generally at 10 a computer-based system and a related methodology which permit user manipulation and correction selectively of a plurality of color-affecting parameters that are to be associated with a printable color image. Included in system 10, as shown in FIG. 1, is a digital computer 12 (shown only fragmentarily in dash-dot lines), and a printing device 13 (shown by dashed lines) which will ultimately print a color image that has been parameter-modified by a user in accordance with practice of the invention. Installed in computer 12 is, for example, a color-image creating and/or managing application 14 in which there is held an original color image 16 that is intended (has been selected), ultimately, to be sent to printing device 13 for output printing.

[0033] Associated with application 14 in computer 12 is a print driver 18 which has been constructed in accordance with the present invention to afford and allow user correction of several different important color-affecting parameters relating to a selected color image, such as image 16. When print driver 18 has been invoked for use in conjunction with preparing to print image 16, the driver presents a graphic interface on the display screen associated with the computer, which interface offers a preview image sub-sampler 19, and a preview sub-screen 20 that allows a user to see, fairly accurately, just how a final printed image (derived from image 16) will probably appear after printing. The image sub-sampler receives the a full pixel-count R, G, B image data package from image 16, and presents a lower-pixel-count R, G, B sub-sample image data package to sub-screen 20, and to a certain set of virtual parameter controllers in the print driver now to be described. In accordance with the present invention, print driver 18 also presents in its graphic interface this just-mentioned set of virtual (slider) controllers, six in total number herein, including a Chroma (c) controller 22, a Red offset (ΔR) controller 24, a Green offset (ΔG) controller 26, a Blue offset (ΔB) controller 28, a Lightness offset (ΔL) controller 30, and a Gamma (G) controller 32. The Chroma controller relates to color saturation, and the Gamma controller to contrast.

[0034] As can be seen in FIG. 1, each of these virtual slider controllers is pictured with a slider, such as slider 22 a in controller 22, which slider can be adjusted between controller range values 0-100, inclusive. These sliders are useable in a very conventional manner employing a mouse, etc., to grab and virtually move the slider up and down along the scale of presented values.

[0035] Further included in print driver 18, as pictured in FIG. 1, are three additional elements, including a mathematical software Chroma matrix 34, an anti-clipping, asymptotic-like processing algorithm 36, and an appropriate software structure 38 for creating, as will be explained shortly, three one-dimensional look-up tables. Matrix 34 and algorithm 36 are specially constructed in accordance with the present invention. Software structure 38 is conventional in its architecture.

[0036] Within the realm of computer 12, the created image sub-sample presents Red, Green and Blue pixel values (R,G,B) both to preview sub-screen 20 and to the six virtual slider controllers just mentioned above. Chroma controller 22, which allows a user to change pixel Chroma values (c) as will shortly be explained, feeds changed Chroma values to Chroma matrix 34 which feeds matrix-treated Red, Green and Blue Chroma pixel values, referred herein as R′, G′, B′, to anti-clipping algorithm 36. The Red, Green and Blue offset slider controllers feed user-varied color offset pixel values ΔR, ΔG, ΔB directly from the respective associated slider controllers to the anti-clipping algorithm. The Lightness offset and Gamma slider controllers feed modified Lightness and Gamma pixel values, ΔL and G, also to the anti-clipping algorithm as shown.

[0037] New pixel output values created through processing by algorithm 36 during assessment for picture color correction, are fed directly to preview sub-screen 20. Here the user makes judgements about desired adjustments in color parameters.

[0038] Completing a description of what is pictured in FIG. 1, included within printing device 13 are the usual print controller 13 a and the usual marking engine 13 b. Marking engine 13 b, when printing is called for, prints, in accordance with this invention, a color-corrected, or modified, hard copy version 40 of original color image 16.

[0039] In accordance with practice of the present invention, under circumstances wherein an original color image, such as color image 16, has been selected for printing, and is presented in sub-sample form for user observation within preview sub-screen 20 in the print driver graphic interface, the user, also from within this same interface, selectively manipulates one or more of the six slider controllers to make appropriate user-determined adjustments selectively, in the Chroma, Red offset, Green offset, Blue offset, Lightness offset and Gamma pixel values. Adjustments made are pictured on sub-screen 20.

[0040]FIG. 2, when examined along with FIG. 1, describes generally how manipulation of the virtual sliders in controllers 22-32, inclusive, produce output control-code values within related ranges. With respect to each of the specific color offset controllers (24,26,28), movement of the associated slider throughout the 0-100 controller range linearly and directly creates an output color-offset value is accordance with the equation: Output Value=Slider Setting−50. Thus, an offset slider setting of 63 produces an output value of 13 (within the code scale range 0-255).

[0041] Movement of the Lightness offset controller slider produces an output value in accordance with the equation: Output Value=Slider Setting−50. Thus, a lightness slider setting of 81 produces an output value of 31 (within the code scale range 0-255).

[0042] Movement of the Chroma slider produces an output value determined in accordance with the equation: Output Value=Slider Setting/50. Accordingly, a Chroma slider setting of 75 produces an output value of 1.5.

[0043] Finally, movement of the Gamma slider produces an output value calculated by the equation: Output Value=150−2.3 (Slider Setting)+0.01 (Slider Setting)². Thus, a Gamma slider setting of 10 produces an output value of 128.

[0044] It is the intention of the present invention to assure that, no matter how a user elects to change any particular color-parameter value, effectively, and after all value changes have been entered, there will be no final output pixel value which lies outside of the computer-scale range of 0-255.

[0045] When a user manipulates the virtual sliders in any or all of these six controllers, the controllers produce appropriate output code-values in accordance with the above equations. The values furnished by controllers 24, 26, 28, 30, 32 are fed directly to anti-clipping algorithm 36. However, the output code-value created and sent by controller 22 is fed indirectly to the anti-clipping algorithm through Chroma matrix 34. It is the output, revised Chroma values derived from the Chroma matrix which are fed to the anti-clipping algorithm.

[0046] The mathematical Chroma matrix which processes output Chroma values from controller 22 is fully expressed in Table II in FIG. 3 of the drawings. In the matrix presented in Table II, and as was mentioned earlier, the value “c” is the adjusted Chroma output value which is provided from controller 22 to the matrix. The output R′, G′ and B′ values derived from the matrix are represented in Table II within the bracket containing the letters R′, G′, B′. In accordance with practice of the invention, Chroma matrix 34 operates on Chroma value variations implemented by a user before the system of the invention operates to produce new output pixel values by and within the anti-clipping algorithm 36.

[0047] Table III in FIG. 4 describes (specifically illustrated, for the color Red) the asymptotic-like anti-clipping algorithm which operates on the received R′, G′, B′, ΔR, ΔG, ΔB, ΔL and G values to produce, on a pixel-by-pixel basis, new pixel values which will change the appearance character of the prospective, printable color image. It should be understood that, while the anti-clipping algorithm is specifically illustrated in the FIG. 4 for the color Red, exactly the same algorithmic treatment is provided for each of the other two colors.

[0048] According to practice of the invention, with operations of virtual controllers 22-32, inclusive, as shown, all new output pixel values which have been created by algorithm 36, will have values that definitively lie within the traditional computer value range of 0-255. No color or tone-scale clipping will occur.

[0049] A user will see in preview sub-screen 20 a changed image in accordance with the entries of these new values, and if unsatisfied with any aspect of change, can iteratively revise changes by re-employing any one of more of the virtual controllers until he or she observes a proposed printable image that is satisfactory.

[0050] When that status is reached, a print command initiates the chain of activity earlier described herein involving the creation of Red, Green and Blue look-up tables, and subsequent processing of the full original image through the Chroma matrix and the prepared look-up tables to generate final, corrected output pixel values for printing. These table values are furnished appropriately to print controller 13 a, which then operates marking engine 13 b to create the printed corrected image pictured at 40 in FIG. 1. This chain of activity is represented in FIG. 1 by the dash-triple-dot arrowheaded lines.

[0051] Thus, the invention provides a very simple yet very sophisticated anti-clipping-guarded opportunity, from within the graphic interface of a print driver, for a user to enact substantial color-parameter manipulation in a proposed-to-be-printed color image.

[0052] While different specific approaches can be employed with respect to how final pixel output values are handled, the employment, as proposed herein, of one-dimensional lookup tables, based upon earlier calculations that relate to color approval of a small-pixel-count sub-sample image, one table each for the three colors Red, Green and Blue, offers a very simple approach which minimizes overall computer processing time.

[0053] By preliminarily applying Chroma matrix processing to changed Chroma values as illustrated and described, this variable, which is extremely sensitive with respect to how it intertwines with other parameters, is not allowed to interfere in a way which could cause unwanted clipping. Final processing operation of the anti-clipping asymptotic-like algorithm takes place only with respect to the matrix-processed Chroma values, along with the other new parameter values that may have been created by user manipulation of the slider controllers.

[0054] While a very specific best-mode anti-clipping algorithm has particularly been illustrated and described herein, it is entirely possible that various modified forms of similarly “asymptotically functioning” algorithms could be used. Also, while final corrected image assembly proceeds, as described herein, with the efficient aid of look-up tables, there may be applications which such assembly is more preferably accomplished, for example, a pixel-by-pixel value-calculation basis. Also, different specific code-value scale ranges could in modified forms of the invention, be employed with appropriately configured output value equations relating these ranges to selected controller ranges.

[0055] Accordingly, while a preferred embodiment and manner of practicing the invention have been described herein, along with certain modifications, it is appreciated that variations and modifications may be made without departing from the spirit of the invention. 

I claim:
 1. A computer-based image-manipulation method for enabling anti-clipping, selective user control over a color-affecting parameter in a computer-presented color image which is intended to be printed, where clipping is defined by the occurrence of an unintended condition, based upon user control input, wherein that parameter assumes a value which lies outside of a desired value range normally limited to values 0-255 in terms of a computer-recognized range of number values, said method comprising furnishing suitable computer-responsive, change-value color controls that are selectively manipulable by a user to effect changes, ultimately, in such a parameter value, thus to vary a certain characteristic of color in the image, and applying predetermined governance over the actual value of the color-affecting parameter whereby, no matter the input control implemented by the user, that actual value is constrained in relation to approaching either one of the two limit values in the mentioned range to an asymptotic-like approach toward such limit value.
 2. In a computer-based print driver, anti-clipping-limited user controls for color-modifying a printable color image comprising at least one user-manipulable, color-parameter value adjuster, operable selectively and variably by a user, with respect to a chosen printable image, to implement with respect thereto a change in that color parameter, and output control structure, operatively connected to said value adjuster, responsive to color-parameter change adjustments entered by a user of said adjuster to limit, where necessary, and by asymptotic-like approach, resulting color modification to a condition which avoids any visably appreciable color-clipping introduction to a resulting image as thereafter printed.
 3. A computer-based printable-image color-manipulation method comprising, furnishing, with respect to a color image selected for printing, a print-driver graphic interface offering, for user color-manipulation input, selectively variable color-parameter controls, responding to user manipulation of such controls to produce, for printing, a color-modified version of the selected image, and as a part of said responding, managing the utilization of user parameter manipulation activities so as to inhibit, in an asymptotic-like manner, any color-parameter clipping in the resulting image modification.
 4. A computer-based color-image printing system comprising, a printing device, an image pre-printing previewer operable to pre-display what will effectively be the final printed appearance of a color image selected for prospective printing, a print driver operatively associated both with said printing device and with said previewer, user color-adjustment controls furnished by said driver, each enabling, throughout a 0-100 adjustment range, free, selective, plural-color-parameter adjustments by a user with respect to such a selected and pre-displayed color image, and color-parameter anti-clipping structure operatively associated with said controls, operable in an asymptotic-like manner, regardless of collective and/or interactive nominal effects of parameter adjustments performed by a user, to inhibit any such clipping in the resulting adjusted color image sent by said driver ultimately to said printing device for printing.
 5. The system of claim 4, wherein said controls include individual controllers each relating to at least one of the collection of color parameters drawn from the list including (a) Red, Green and Blue color offset, (b) Lightness offset, (c) Chroma, and (d) Gamma.
 6. The system of claim 5, wherein the color-offset category of parameters relates to individually addressable Red, Green, and Blue respective offset capabilities.
 7. The system of claim 4, wherein said anti-clipping structure employs asymptotic-like limit structure effective to permit a user-adjustment approach toward, but not an arrival at, a color-parameter clipping condition in an image sent to said printing device.
 8. The system of claim 5, wherein said anti-clipping structure effectively performs in a staged manner, with first-level attention being addressed to issues involving Chroma, and second-level attention being addressed to any and all other adjusted parameters which are then treated in light of the result of such first-level attention. 